# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=zsh-histdb
pkgver=0_git20220118
_gitrev=30797f0c50c31c8d8de32386970c5d480e5ab35d
pkgrel=0
pkgdesc="A slightly better history for zsh"
url="https://github.com/larkery/zsh-histdb"
arch="noarch"
license="MIT"
depends="
	cmd:column
	cmd:sqlite3
	zsh
	"
source="https://github.com/larkery/zsh-histdb/archive/$_gitrev/zsh-histdb-$_gitrev.tar.gz
	xdg-data-home.patch
	"
builddir="$srcdir/zsh-histdb-$_gitrev"
options="!check"  # no tests provided

package() {
	local destdir="$pkgdir/usr/share/zsh/plugins/$pkgname"

	mkdir -p "$destdir"
	cp histdb-* ./*.zsh "$destdir"/
	cp -r db_migrations "$destdir"/
}

sha512sums="
e215cae31487c493b01b58f208f015d62a5e0c170a2ca12fe090726f3643708c7620f9aceb1cab848196c71a60ffc49da40e7b6cb7e70b8f2499a15e8f48093f  zsh-histdb-30797f0c50c31c8d8de32386970c5d480e5ab35d.tar.gz
687cb3f351f4eeacd0b0d3a1b76bd016da572177c40791407d464542084e7c7f3d505578a60a3964b525b6ed140742b1e03f99c82d07e072ba39f93aea0acc92  xdg-data-home.patch
"
